﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="edit-addprop.aspx.cs" Inherits="admin_edit_addprop" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" >
<head id="Head1" runat="server">
    <link rel="shortcut icon" type="image/jpg" href="../images/logo/logo_feas.jpg" />



<%--<script type='text/javascript'>
    $(function () {
        var overlay = $('<div id="overlay"></div>');
        overlay.show();
        overlay.appendTo(document.body);
        $('.popup').show();
        $('.close').click(function () {
            $('.popup').hide();
            overlay.appendTo(document.body).remove();
            return false;
        });

        $('.x').click(function () {
            $('.popup').hide();
            overlay.appendTo(document.body).remove();
            return false;
        });
    });

</script>--%>
<title>Real estate</title>


<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox16").hide();
        $("#DropDownList20").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox16").show();
            }
            else {
                $("#TextBox16").hide();
            }

        });
    });
</script>

<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox46").hide();
        $("#DropDownList32").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox46").show();
            }
            else {
                $("#TextBox46").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox47").hide();
        $("#DropDownList50").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox47").show();
            }
            else {
                $("#TextBox47").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox15").hide();
        $("#DropDownList15").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox15").show();
            }
            else {
                $("#TextBox15").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox45").hide();
        $("#DropDownList24").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox45").show();
            }
            else {
                $("#TextBox45").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox4").hide();
        $("#d6").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox4").show();
            }
            else {
                $("#TextBox4").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox27").hide();
        $("#DropDownList10").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox27").show();
            }
            else {
                $("#TextBox27").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox4").hide();
        $("#d6").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox4").show();
            }
            else {
                $("#TextBox4").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox34").hide();
        $("#DropDownList11").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox34").show();
            }
            else {
                $("#TextBox34").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox8").hide();
        $("#DropDownList36").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox8").show();
            }
            else {
                $("#TextBox8").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox20").hide();
        $("#DropDownList16").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox20").show();
            }
            else {
                $("#TextBox20").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox5").hide();
        $("#DropDownList42").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox5").show();
            }
            else {
                $("#TextBox5").hide();
            }

        });
    });
</script>

<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox7").hide();
        $("#DropDownList43").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox7").show();
            }
            else {
                $("#TextBox7").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox9").hide();
        $("#DropDownList37").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox9").show();
            }
            else {
                $("#TextBox9").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox19").hide();
        $("#DropDownList48").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox19").show();
            }
            else {
                $("#TextBox19").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox11").hide();
        $("#DropDownList39").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox11").show();
            }
            else {
                $("#TextBox11").hide();
            }

        });
    });
</script>
<!--<script type="text/javascript" src="../js/sticky_footer.js"></script>-->
<link rel="stylesheet" type="text/css" href="../css/master.css" />
<link rel="stylesheet" type="text/css" href="../css/dropBox.css"/>
<link rel="stylesheet" type="text/css" href="../css/menu.css"/>
<link rel="stylesheet" type="text/css" href="../css/tooltip.css"/>
<link rel="stylesheet" type="text/css" href="../css/buttons.css"/>
<link rel="stylesheet" href="../css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
 <script src="js/jquery-ui-1.8.22.custom.min.js" type="text/javascript"></script>
<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.8.1.min.js" type="text/javascript"></script>
   

<link rel="stylesheet" href="../css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script type="text/javascript">

    $(document).ready(function () {
        $("#student_permanent_address1").hide();
        $("#DropDownList2").change(function () {

            var x = $(this).val();

            if (x == "Yes") {
                $("#student_permanent_address1").show();
            }
            else {
                $("#student_permanent_address1").hide();
            }

        });
    });
</script>

<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox8").hide();
        $("#DropDownList11").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox8").show();
            }
            else {
                $("#TextBox8").hide();
            }

        });
    });
</script>

<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox15").hide();
        $("#DropDownList25").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox15").show();
            }
            else {
                $("#TextBox15").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox10").hide();
        $("#DropDownList15").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox10").show();
            }
            else {
                $("#TextBox10").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox7").hide();
        $("#DropDownList12").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox7").show();
            }
            else {
                $("#TextBox7").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox4").hide();
        $("#DropDownList7").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox4").show();
            }
            else {
                $("#TextBox4").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#student_permanent_address2").hide();

        $("#DropDownList1").change(function () {

            var x = $(this).val();
            if (x == "Yes") {
                $("#student_permanent_address2").show();
            }
            else {
                $("#student_permanent_address2").hide();
            }

        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#txttoilets").hide();
        $("#DropDownList19").change(function () {

            var x = $(this).val();
            if (x == "Custom") {
                $("#txttoilets").show();
            }
            else {
                $("#txttoilets").hide();
            }

        });
    });
</script>

<script type="text/javascript">

    $(document).ready(function () {
        $("#txtfurniture").hide();
        $("#DropDownList18").change(function () {

            var x = $(this).val();
            if (x == "Custom") {
                $("#txtfurniture").show();
            }
            else {
                $("#txtfurniture").hide();
            }

        });
    }); 
</script>

 <script type="text/javascript">

     $(document).ready(function () {
         $("#txtpark").hide();
         $("#ddlparking").change(function () {

             var x = $(this).val();
             if (x == "Custom") {
                 $("#txtpark").show();
             }
             else {
                 $("#txtpark").hide();
             }

         });
     });
</script>

<script type="text/javascript">

    $(document).ready(function () {
        $("#cr").hide();
        $("#Button1").click(function () {


            $("#cr").show();


        });
    });
</script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#Div19").hide();
        $("#DropDownList28").change(function () {

            var x = $(this).val();

            if (x == "Custom type") {
                $("#Div19").show();
            }
            else {
                $("#Div19").hide();
            }

        });
    });
</script> 

<script type="text/javascript">

    $(document).ready(function () {
        $("#TextBox2").hide();
        $("#DropDownList56").change(function () {

            var x = $(this).val();

            if (x == "Custom") {
                $("#TextBox2").show();
            }
            else {
                $("#TextBox2").hide();
            }

        });
    });
</script>
<link href="../css/datepicker.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form_std_register" class="form_control" runat="server" 
    enctype="multipart/form-data">
 <input type="hidden" id="hdClient" runat="server" />

<div id="wrapper">
<div id="header"><a href="#"> <img src="../images/logo/logo_feas.png" alt="Logo" style="margin-top:7px;margin-left:7px;float:left;"> <img src="../images/logo/logo_feas2.png" alt="Logo" class="logo"></a>
    <div id="metaphors" align="right">
   
      
      <li id="btntheme"><a href="#"><span class="theme_icon"></span>Theme<span class="arrow"></span></a></li>
      <img src="../images/face1.png" class="user_icon">
      <li id="btnUser"><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:label ID="Label1" runat="server" text="Label"></asp:label><span class="arrow"></span></a></li>
      <li><span class="logout_icon"></span>
          <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Logout</asp:LinkButton></li>
      <div id="box3" class="outerbox">
        <div id="box_inner3" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">email</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">email</div>
        </div>
      </div>
      <div id="box2" class="outerbox">
        <div id="box_inner3" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">alert</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">alert</div>
        </div>
      </div>
      <div id="box1" class="outerbox">
        <div id="box_inner1" class="innerbox">
          <div class="user_option1">
            <h4 class="opt_heading">Menu Bar</h4>
            <span id="show_menu" class="style">on</span><span id="hide_menu" class="style2">off</span></div>
        </div>
      </div>
      <div id="box" class="outerbox">
        <div id="box_inner" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">Edit Profile</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">Change Password</div>
        </div>
      </div>
    </div>
    <!--End of the metaphor tag--> 
    
  </div>
  <!--End of the Header tag-->
  <div id="contentliquid">
    <div id="content">
      <div id="titalbar"> 
        <h1>Edit For Sell</h1>
        
      </div>

       <script type="text/javascript">

           $(document).ready(function () {
               $("#task").hide();

               $(".btn").click(function () {
                   $("#task").show();


               });
           });
</script>
      <div id="content_placeholder">
      <div id="task">
          <div id="Div6" class="form_placeholder_std">
            <div id="Div3" class="form_title"><img src="../images/icons/form.png">
              <h2>Task notes</h2>
            </div>
               <div class="row">
						<asp:Label ID="Label67" runat="server" Text="Label"></asp:Label>
			  <asp:GridView ID="GridView2" runat="server" DataSourceID="SqlDataSource2" 
                    CssClass="mGrid" onrowcommand="GridView1_RowCommand" 
                    AutoGenerateColumns="False" AllowPaging="True" >
                    <Columns>
                     
                      
                        <asp:BoundField DataField="p_id" HeaderText="Property ID" 
                            SortExpression="p_id" Visible="false" />
                        <asp:BoundField DataField="t_id" HeaderText="t_id" SortExpression="t_id"  />
                        <asp:BoundField DataField="deal_status" HeaderText="Deal Status" 
                            SortExpression="deal_status" />
                        <asp:BoundField DataField="created" HeaderText="Created" 
                            SortExpression="created" />
                        <asp:BoundField DataField="update_" HeaderText="Updated" 
                            SortExpression="update_" />
                       
                        <asp:BoundField DataField="cus_to_do" HeaderText="Custom To do" 
                            SortExpression="cus_to_do" />
                        <asp:BoundField DataField="status_" HeaderText="Status" 
                            SortExpression="status_" />
                        
                        <asp:BoundField DataField="to_do_msg" HeaderText="To do Message" 
                            SortExpression="to_do_msg" />
                      <asp:ButtonField ButtonType="Image" CommandName="view" HeaderText="Edit" 
                                ImageUrl="../images/icons/search.png" Text="Button" />
                                
                              
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
                    SelectCommand="SELECT * FROM [task] WHERE  ([p_id] = @p_id)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="Label67" Name="p_id" 
                            PropertyName="Text" Type="String" />
                        
                    </SelectParameters>
                </asp:SqlDataSource>
              
					</div>
              
          
          </div>
          </div>
       <div id="Div21" class="form_placeholder_std">
            <div id="Div22" class="form_title"><img src="../images/icons/user.png">
              <h2>Show In Front End</h2>
            </div>
            <table style="text-align:left">
              <tr>
                <td>
                  <asp:DropDownList ID="DropDownList31" runat="server" CssClass="combobox "><asp:ListItem>Select</asp:ListItem>
                      <asp:ListItem>Yes</asp:ListItem>
                      <asp:ListItem>No</asp:ListItem>
                       <asp:ListItem>Short Term</asp:ListItem>
                      
                  </asp:DropDownList></td>
                
              </tr>
             
                
              </table>
              
          </div>
          <asp:GridView ID="GridView1" HeaderStyle-BackColor="#3AC0F2" HeaderStyle-ForeColor="White"
    runat="server" AutoGenerateColumns="false" Visible ="false">
    <Columns>
   
     <asp:BoundField DataField="p_id" HeaderText="Id" ItemStyle-Width="30" />
      <asp:BoundField DataField="t_id" HeaderText="taskid" ItemStyle-Width="30" />
        <asp:BoundField DataField="deal_status" HeaderText="deal" ItemStyle-Width="30" />
        <asp:BoundField DataField="created" HeaderText="created" ItemStyle-Width="150" />
        <asp:BoundField DataField="update_" HeaderText="update" ItemStyle-Width="150" />
                <asp:BoundField DataField="min_" HeaderText="minutes" ItemStyle-Width="150" />
                        <asp:BoundField DataField="hrs" HeaderText="hrs" ItemStyle-Width="150" />
                                <asp:BoundField DataField="fast_reminder" HeaderText="fast_reminder" ItemStyle-Width="150" />
                                        <asp:BoundField DataField="day_" HeaderText="day" ItemStyle-Width="150" />

                                                <asp:BoundField DataField="hr" HeaderText="hr" ItemStyle-Width="150" />

        <asp:BoundField DataField="min1" HeaderText="min" ItemStyle-Width="150" />
        <asp:BoundField DataField="agent" HeaderText="agent" ItemStyle-Width="150" />
        <asp:BoundField DataField="sec_agent" HeaderText="sec_agent" ItemStyle-Width="150" />
        <asp:BoundField DataField="rank" HeaderText="rank" ItemStyle-Width="150" />
        <asp:BoundField DataField="cust_rank" HeaderText="cust_rank" ItemStyle-Width="150" />
                                                        <asp:BoundField DataField="sig" HeaderText="sig" ItemStyle-Width="150" />
                                                         <asp:BoundField DataField="commission" HeaderText="commission" ItemStyle-Width="150" />
                                                          <asp:BoundField DataField="refer" HeaderText="refer" ItemStyle-Width="150" />
                                                           <asp:BoundField DataField="cust_refer" HeaderText="cust_refer" ItemStyle-Width="150" />
                                                            <asp:BoundField DataField="comment" HeaderText="comment" ItemStyle-Width="150" />

                                                             <asp:BoundField DataField="terms" HeaderText="terms" ItemStyle-Width="150" />
                                                              <asp:BoundField DataField="to_do" HeaderText="to_do" ItemStyle-Width="150" />
 <asp:BoundField DataField="cus_to_do" HeaderText="cus_to_do" ItemStyle-Width="150" />
 <asp:BoundField DataField="status_" HeaderText="status_" ItemStyle-Width="150" />
 <asp:BoundField DataField="full_day" HeaderText="full_day" ItemStyle-Width="150" />
                                                               <asp:BoundField DataField="to_do_msg" HeaderText="to_do_msg" ItemStyle-Width="150" />
  <asp:BoundField DataField="to_do_date" HeaderText="to_do_date" ItemStyle-Width="150" />
  <asp:BoundField DataField="to_hr" HeaderText="to_hr" ItemStyle-Width="150" />
  <asp:BoundField DataField="to_min" HeaderText="to_min" ItemStyle-Width="150" />
  
    </Columns>
</asp:GridView>
          <div id="Div8" class="form_placeholder_std">
            <div id="Div7" class="form_title"><img src="../images/icons/user.png">
              <h2>Allotment Details</h2>
            </div>
            <table style="text-align:left">
              <tr>
                <td>Agent Name</td>
                <td><asp:DropDownList ID="DropDownList7" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox" 
                     ClientIDMode="Static" DataSourceID="SqlDataSource1" 
                        DataValueField="f_name" AppendDataBoundItems="true">
                    <asp:ListItem Text="Select" Value="" /> 
                   </asp:DropDownList> 
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
                        SelectCommand="SELECT [f_name] FROM [agent_add]"></asp:SqlDataSource></td>
                <td>Property Type</td>
                <td><asp:DropDownList ID="d6" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox" 
                     ClientIDMode="Static"><asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>דירה</asp:ListItem>
                      <asp:ListItem>מיני פנטהאוז</asp:ListItem>
                      <asp:ListItem>דירות יוקרה</asp:ListItem>
                      <asp:ListItem>דירת גן</asp:ListItem>
                      <asp:ListItem>גג/ פנטהאוז</asp:ListItem>
                      <asp:ListItem>סטודיו</asp:ListItem>
                      <asp:ListItem>לופט</asp:ListItem>
                      <asp:ListItem>מרתף</asp:ListItem>
                      <asp:ListItem>פרטר</asp:ListItem>
                      <asp:ListItem>דופלקס</asp:ListItem>
                      <asp:ListItem>טריפלקס</asp:ListItem>
                      <asp:ListItem>פרטי/ קוטג</asp:ListItem>
                      <asp:ListItem>דו משפחתי</asp:ListItem>
                      <asp:ListItem>יחידת דיור</asp:ListItem>
                      <asp:ListItem>משק חקלאי</asp:ListItem>
                      <asp:ListItem>נחלה</asp:ListItem>
                      <asp:ListItem>משק עזר</asp:ListItem>
                      <asp:ListItem>תקופות קצרות</asp:ListItem>
                      <asp:ListItem>דירות נופש</asp:ListItem>
                      <asp:ListItem>מחסן</asp:ListItem>
                      <asp:ListItem>חניה</asp:ListItem>
                      <asp:ListItem>מבנים ניידים / קארוון</asp:ListItem>
                      <asp:ListItem>מגרשים</asp:ListItem>
                      <asp:ListItem>בניין מגורים</asp:ListItem>
                      <asp:ListItem>כללי</asp:ListItem>
                      <asp:ListItem>קבוצת רכישה</asp:ListItem>
                      <asp:ListItem>אולמות</asp:ListItem>
                      <asp:ListItem>בית מלון</asp:ListItem>
                      <asp:ListItem>בניין משרדים</asp:ListItem>
                      <asp:ListItem>חנויות</asp:ListItem>
                      <asp:ListItem>שטח מסחרי</asp:ListItem>
                      <asp:ListItem>חניון</asp:ListItem>
                      <asp:ListItem>מבני תעשיה</asp:ListItem>
                      <asp:ListItem>משרדים</asp:ListItem>
                      <asp:ListItem>עסקים למכירה</asp:ListItem>
                      <asp:ListItem>קליניקות</asp:ListItem>
                      <asp:ListItem>דמי מפתח</asp:ListItem>
                      <asp:ListItem>בתי קפה</asp:ListItem>
                      <asp:ListItem>מסעדות</asp:ListItem>
                      <asp:ListItem>ברים</asp:ListItem>
                      <asp:ListItem>Any</asp:ListItem>
                      <asp:ListItem>Single-Famliy Home</asp:ListItem>
                      <asp:ListItem>Condo</asp:ListItem>
                      <asp:ListItem>Town-Home</asp:ListItem>
                      <asp:ListItem>Town-House</asp:ListItem>
                      <asp:ListItem>Coop</asp:ListItem>
                      <asp:ListItem>Apartment</asp:ListItem>
                      <asp:ListItem>Loft</asp:ListItem>
                      <asp:ListItem>Tic</asp:ListItem>
                      <asp:ListItem>Apt\Condo\Townhome</asp:ListItem>
                      <asp:ListItem>Mobile/manufactured</asp:ListItem>
                      <asp:ListItem>Farm/ranch</asp:ListItem>
                      <asp:ListItem>Land</asp:ListItem>
                      <asp:ListItem>Multi-famliy Home</asp:ListItem>
                      <asp:ListItem>Income\investment</asp:ListItem>
                      <asp:ListItem>Houseboat</asp:ListItem>
                      <asp:ListItem>Unspecified</asp:ListItem>
                      <asp:ListItem>Apartment Building</asp:ListItem>
                      <asp:ListItem>Condominium</asp:ListItem>
                      <asp:ListItem>Residential Building</asp:ListItem>
                      <asp:ListItem>Commercial Building</asp:ListItem>
                      <asp:ListItem>Office Building</asp:ListItem>
                      <asp:ListItem>Two-Family, Two-Family House</asp:ListItem>
                      <asp:ListItem>Duplex</asp:ListItem>
                      <asp:ListItem>Store</asp:ListItem>
                      <asp:ListItem>Branch Store</asp:ListItem>
                      <asp:ListItem>Public Utility Property</asp:ListItem>
                      <asp:ListItem>Fixtures</asp:ListItem>
                      <asp:ListItem>Lot</asp:ListItem>
                      <asp:ListItem>Apartment Hotel</asp:ListItem>
                      <asp:ListItem>Liquidation Sale, Execution Sale</asp:ListItem>
                      <asp:ListItem>Commercial Center</asp:ListItem>
                      <asp:ListItem>Cellar, Basement</asp:ListItem>
                      <asp:ListItem>Institutional Property</asp:ListItem>
                      <asp:ListItem>Income Property</asp:ListItem>
                      <asp:ListItem>Personal Property</asp:ListItem>
                      <asp:ListItem>Special Purpose Property</asp:ListItem>
                      <asp:ListItem>Farm Land, Agriculture Land</asp:ListItem>
                      <asp:ListItem>Unimproved Land</asp:ListItem>
                      <asp:ListItem>Improved Land</asp:ListItem>
                      <asp:ListItem>Public Domain Land</asp:ListItem>
                      <asp:ListItem>Vacant Land</asp:ListItem>
                      <asp:ListItem>FORCLOSURE-Deal</asp:ListItem>
                      <asp:ListItem>Short-Sale-Deal</asp:ListItem>
                      <asp:ListItem>Reo-Deal</asp:ListItem>
                      <asp:ListItem>Auction-Deal</asp:ListItem>
                      <asp:ListItem>Bulk-Deal</asp:ListItem>
                      <asp:ListItem>Note-Deal</asp:ListItem>
                      <asp:ListItem>House</asp:ListItem>
                      <asp:ListItem>Unit&amp;Apartment</asp:ListItem>
                      <asp:ListItem>Unit</asp:ListItem>
                      <asp:ListItem>Villa</asp:ListItem>
                      <asp:ListItem>Acreage</asp:ListItem>
                      <asp:ListItem>Rural</asp:ListItem>
                      <asp:ListItem>Block of units</asp:ListItem>
                      <asp:ListItem>Retirement living</asp:ListItem>
                      <asp:ListItem>Building Lot </asp:ListItem>
                      <asp:ListItem>Raw Land</asp:ListItem>
                      <asp:ListItem>Bungalow</asp:ListItem>
                      <asp:ListItem>Castle</asp:ListItem>
                      <asp:ListItem>Conch house</asp:ListItem>
                      <asp:ListItem>Mansion</asp:ListItem>
                      <asp:ListItem>apartment tower-Tower block</asp:ListItem>
                      <asp:ListItem>office tower</asp:ListItem>
                      <asp:ListItem>Custom</asp:ListItem>
		 </asp:DropDownList></td>
         <td>           <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></td>
              </tr>
     
              <tr>
                <td>First Name</td>
                <td> <asp:TextBox ID="txtfname1" runat="server" ClientIDMode="Static" class="validate[optional]"></asp:TextBox></td>
                <td>Last Name<span style="color:#F00;"></span></td>
                <td><asp:TextBox ID="txtlname1" runat="server"  
                        class="validate[optional]" 
                        ClientIDMode="Static"></asp:TextBox></td>
              </tr>
              <tr>
                <td>Email</td>
                <td> 
                    <asp:TextBox ID="TextBox22" runat="server"></asp:TextBox>
                  </td>
                <td>Phone Number</td>
                <td>
                    <asp:TextBox ID="TextBox21" runat="server"></asp:TextBox>
                  </td>
              </tr>
                              
                
              </table>
              
          </div>
          
         <div id="Div11" class="form_placeholder_std" style="margin-top:0;border-top:none;">
            <div id="Div12" class="form_title"><img src="../images/icons/phone.png">
              <h2  style="float:left" >Client Address Details</h2>
             
              
            </div>
          <table style="text-align:left">
              <tr>
                <td >Street</td>
                <td>  
                    <asp:TextBox ID="TextBox31" runat="server"></asp:TextBox>
                  </td>
                <td >House Number</td>
                <td> 
                    <asp:TextBox ID="TextBox3" runat="server" CssClass="validate[optional]" 
                        ClientIDMode="Static" class="validate[optional]" ></asp:TextBox>
                  </td>
                <td >Neighborhood</td>
                <td> 
                    <asp:TextBox ID="TextBox32" runat="server"></asp:TextBox>
                  </td>
              <tr>
                <td >City</td>
                <td>  
                    <asp:TextBox ID="TextBox30" runat="server"></asp:TextBox>
                  </td>
                <td >&nbsp;</td>
                <td> 
                    &nbsp;</td>
                <td >&nbsp;</td>
                <td> 
                    &nbsp;</td>
              <tr>
                <td >Block </td>
                <td> 
                    <asp:TextBox ID="TextBox56" runat="server"></asp:TextBox>
                  </td>
                <td >Sub</td>
                <td> 
                    <asp:TextBox ID="TextBox55" runat="server"></asp:TextBox>
                  </td>
                <td >&nbsp;</td>
                <td> 
                    &nbsp;</td>
              <tr>
		<td >Street Number</td>
                <td> 
                    <asp:TextBox ID="TextBox43" runat="server"></asp:TextBox>
                  </td>
                <td >Apartment Number</td>
		        <td> 
                    <asp:TextBox ID="TextBox44" runat="server"></asp:TextBox>
                  </td>
		<td >&nbsp;</td>
                <td>
                    &nbsp;</td>
                      </tr>
	
              <tr>
		<td >Zip Code</td>
                <td> <asp:TextBox ID="TextBox23" runat="server" CssClass="validate[optional]" 
                        ClientIDMode="Static"></asp:TextBox></td>
                <td >Country</td>
		        <td> 
                    <asp:TextBox ID="TextBox24" runat="server"></asp:TextBox>
                  </td>
		<td >&nbsp;</td>
                <td>
                    &nbsp;</td>
                      </tr>
	
            </table>
          </div>
          

               <div id="student_add" class="form_placeholder_std">
            <div id="student_title" class="form_title"><img src="../images/icons/list.png">
              <h2>Property Location For Font End</h2>
            </div>
              
            <table style="text-align:left" >
              <tr>
                <td>Neighborhood</td>
                <td>
                    <asp:TextBox ID="TextBox35" runat="server"></asp:TextBox>
                  </td>
                <td>City</td>
                <td>
                    <asp:TextBox ID="TextBox28" runat="server"></asp:TextBox>
                  </td>
              
                  <td>
                      State</td>
                  <td>
                      <asp:TextBox ID="txtBuildPrivilege" runat="server"  type="text"  CssClass="validate[optional]" /></td>
              
              <tr>
                <td>Country</td>
                <td>
                      <asp:TextBox ID="TextBox29" runat="server"></asp:TextBox>
                  </td>
                <td>Zip Code</td>
                <td>
                    <asp:TextBox ID="TextBox51" runat="server"></asp:TextBox>
                  </td>
              
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
              
              <%--  <td>jjj<asp:TextBox ID="txtDob" runat="server"  type="text" Visible="False"></asp:TextBox></td>--%>
              </table>
          </div>
           <div id="Div25" class="form_placeholder_std">
            <div id="Div26" class="form_title"><img src="../images/icons/list.png">
              <h2>Property Location For Back End</h2>
            </div>
              
            <table style="text-align:left" >
              <tr>
                <td>Street</td>
                <td>
                    <asp:TextBox ID="TextBox50" runat="server"></asp:TextBox>
                  </td>
                <td>House Number</td>
                <td><asp:TextBox ID="TextBox13" runat="server"  type="text" cssClass="validate[optional]]"></asp:TextBox></td>
                <td>Apartment Number</td>
                <td><asp:TextBox ID="TextBox14" runat="server"  type="text"  CssClass="validate[optional]" ></asp:TextBox></td>
              </tr>
              </table>
          </div>
   
                    <div id="Div23" class="form_placeholder_std" style="margin-top:0;border-top:none;">
            <div id="Div24" class="form_title"><img src="../images/icons/notice.png">
              <h2 style="float:left;">Infrastructure Information</h2>
             
              
            </div>
            <table style="text-align:left">
              <tr>
                <td rowspan="2" >Room Number</td>
                <td rowspan="2">
                    <asp:TextBox ID="TextBox36" runat="server"></asp:TextBox>
                  </td>
                <td rowspan="2" >Property Condition</td>
                <td>
                    <asp:DropDownList ID="DropDownList37" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox" 
                     ClientIDMode="Static" Width="120px" ><asp:ListItem>Select</asp:ListItem>
                    <asp:ListItem>New From contractor</asp:ListItem>
                   <asp:ListItem>Renovated</asp:ListItem>
                    <asp:ListItem>Well Reserved</asp:ListItem>
                   
                    <asp:ListItem>Not Important</asp:ListItem>
     
		            <asp:ListItem>Custom</asp:ListItem>
     
		 </asp:DropDownList>
                  </td>
           </tr>
              <tr>
                <td>
                    <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                  </td>
           </tr>
              <tr>
                <td >Floor Number</td>
                <td>
                    <asp:TextBox ID="TextBox25" runat="server"></asp:TextBox>
                  </td>
                <td >Total Floor In Building</td>
                <td>
                    <asp:TextBox ID="TextBox26" runat="server"></asp:TextBox>
                  </td>
           </tr>
              <tr>
                <td rowspan="2" >Building Condition<span style="color:#F00;"></span></td>
                <td>
                    <asp:DropDownList ID="DropDownList42" runat="server"><asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>New From Constrictor</asp:ListItem>
                        <asp:ListItem>Renovated</asp:ListItem>
                        <asp:ListItem>New</asp:ListItem>
                        <asp:ListItem>Custom</asp:ListItem>
                    </asp:DropDownList>
                  </td>
             
                <td rowspan="2" >Age of Building</td>
                <td rowspan="2">
                    <asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
                  </td>
           </tr>
              <tr>
                <td>
                    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                  </td>
           </tr>
           <tr>
                <td rowspan="2" >Number Of Residence</td>
                <td rowspan="2">
                    <asp:TextBox ID="TextBox37" runat="server"></asp:TextBox>
                  </td>
                <td rowspan="2" >   Building Privilege </td>
                <td>  
                    <asp:DropDownList ID="DropDownList43" runat="server"><asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>Yes</asp:ListItem>
                        <asp:ListItem>No</asp:ListItem>
                        <asp:ListItem>Custom</asp:ListItem>
                    </asp:DropDownList>
                  </td>
        
       
               
              </tr>
           <tr>
                <td>  
                    <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                  </td>
        
       
               
              </tr>
            </table>
          </div>
           <div id="Div1" class="form_placeholder_std" style="margin-top:0;border-top:none;">
            
			<div id="Div2" class="form_title"><img src="../images/icons/forms.png">
              <h2>Propert Photos/Clicks</h2>
            </div>
            <table style="text-align:left">
              <tr>
                <td >Properties Image </td>
                <td><div>
                   <style>
                       #selectedFiles
                       {
                           float:left;
                       }
	#selectedFiles img {
		width: 125px;
		height: 125px;
		float: left;
		margin-bottom:10px;
		margin-right:10px;
		border:1px solid #ccc;
	}
</style>
<form id="myForm" method="post" enctype="multipart/form-data">

       
    
<asp:FileUpload runat="server" ID="FileUpload1"   name="files" multiple  accept="image/*" />
    <asp:Label ID="Span1" runat="server"></asp:Label>
    <div style="clear:both"></div>
    
    <div id="selectedFiles"></div>
      
	</form>

    
 

                                    </div><script>
                                              var selDiv = "";

                                              document.addEventListener("DOMContentLoaded", init, false);

                                              function init() {
                                                  document.querySelector('#FileUpload1').addEventListener('change', handleFileSelect, false);
                                                  selDiv = document.querySelector("#selectedFiles");
                                              }

                                              function handleFileSelect(e) {

                                                  if (!e.target.files || !window.FileReader) return;

                                                  selDiv.innerHTML = "";

                                                  var files = e.target.files;
                                                  var filesArr = Array.prototype.slice.call(files);
                                                  filesArr.forEach(function (f) {
                                                      if (!f.type.match("image.*")) {
                                                          return;
                                                      }

                                                      var reader = new FileReader();
                                                      reader.onload = function (e) {
                                                          var html = "<img src=\"" + e.target.result + "\">";
                                                          selDiv.innerHTML += html;
                                                      }
                                                      reader.readAsDataURL(f);

                                                  });


                                              }
	</script>


 
    <asp:Label ID="listofuploadedfiles" runat="server" />

</div></td>
                                 
                </table>
            </div>  
          
           
		  <div id="Div9" class="form_placeholder_std" style="margin-top:0;border-top:none;">
            
			<div id="Div10" class="form_title"><img src="../images/icons/list.png">
              <h2>Property Detailed information</h2>
            </div>
             <table style="text-align:left">
             <tr>
                 
               <td class="style1" >Parking<span style="color:#F00;"></span></td>
               
             <td colspan="2">  <asp:DropDownList ID="ddlparking" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  onChange="show_pnl()"
                     ClientIDMode="Static" ><asp:ListItem>Select</asp:ListItem>
                    <asp:ListItem>Yes</asp:ListItem>
                   <asp:ListItem>No</asp:ListItem>
                   <asp:ListItem>Double</asp:ListItem>
                   <asp:ListItem>Listed with Taboo</asp:ListItem>
                   <asp:ListItem>With Partner</asp:ListItem>
                    <asp:ListItem>Custom</asp:ListItem>
                 
                
		 </asp:DropDownList></td>
         <td><asp:TextBox ID="txtpark" runat="server" ClientIDMode="Static" CssClass="validate[optional]"></asp:TextBox></td>
               
         <td>Basement</td>
               
         <td><asp:DropDownList ID="DropDownList10" runat="server" CssClass ="combobox "><asp:ListItem>Select</asp:ListItem>
                    <asp:ListItem Value="No"></asp:ListItem>
                    <asp:ListItem Value="Yes"></asp:ListItem>
                    <asp:ListItem>Custom</asp:ListItem>
                </asp:DropDownList></td>
               <td> <asp:TextBox ID="TextBox27" runat="server"></asp:TextBox></td>
              </tr>
                
               <tr>
                 
               <td class="style1" >Furniture<span style="color:#F00;"></span></td>
               
             <td colspan="2">  <asp:DropDownList ID="DropDownList18" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  onChange="show_pnl()"
                     ClientIDMode="Static" ><asp:ListItem>Select</asp:ListItem>
                    <asp:ListItem>Yes</asp:ListItem>
                   <asp:ListItem>No</asp:ListItem>
                   <asp:ListItem>Partial</asp:ListItem>
                 
                    <asp:ListItem>Custom</asp:ListItem>
                 
                
		 </asp:DropDownList></td>
         <td><asp:TextBox ID="txtfurniture" runat="server" ClientIDMode="Static" CssClass="validate[optional]"></asp:TextBox></td>
               
         <td>Storage Room </td>
               
         <td><asp:DropDownList ID="DropDownList11" runat="server" CssClass ="combobox "><asp:ListItem>Select</asp:ListItem>
                    <asp:ListItem Value="No"></asp:ListItem>
                    <asp:ListItem Value="Yes"></asp:ListItem>

                    <asp:ListItem>Custom</asp:ListItem>

                </asp:DropDownList></td>
               <td>   <asp:TextBox ID="TextBox34" runat="server"></asp:TextBox></td>
              </tr>
              
              <tr>
                 
               <td class="style1" rowspan="2" >Toilets<span style="color:#F00;"></span></td>
               
             <td>  
                 <asp:DropDownList ID="DropDownList19" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  onChange="show_pnl()"
                     ClientIDMode="Static" Width="100px" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>One</asp:ListItem>
                   <asp:ListItem>Double</asp:ListItem>
                   
                   <asp:ListItem>Master Bedroom</asp:ListItem>
                   
                   <asp:ListItem>3,4,5</asp:ListItem>
                   <asp:ListItem>Custom</asp:ListItem>
                 
                
		 </asp:DropDownList></td>


               
             <td> 
             
             <script type="text/javascript">

                 $(document).ready(function () {
                     $("#DropDownList56").hide();
                     $("#Image1").click(function () {


                         $("#DropDownList56").show();


                     });
                 });
</script>
             
                 <asp:Image ID="Image1" runat="server" ImageUrl="img/plus.png" />
                 
                  </td>
         <td rowspan="2"><asp:TextBox ID="txttoilets" runat="server" ClientIDMode="Static" CssClass="validate[optional]"></asp:TextBox></td>
               
         <td rowspan="2">AC</td>
               
         <td rowspan="2">
                           <script type="text/javascript">

                               $(document).ready(function () {
                                   $("#TextBox54").hide();
                                   $("#DropDownList12").change(function () {

                                       var x = $(this).val();
                                       if (x == "Custom") {
                                           $("#TextBox54").show();
                                       }
                                       else {
                                           $("#TextBox54").hide();
                                       }

                                   });
                               });
</script> 
         <asp:DropDownList ID="DropDownList12" runat="server" CssClass ="combobox "><asp:ListItem>Select</asp:ListItem>
                     <asp:ListItem>Yes</asp:ListItem>
                    <asp:ListItem>No</asp:ListItem>
                    <asp:ListItem>Central</asp:ListItem>
                    <asp:ListItem>Window</asp:ListItem>
                    <asp:ListItem>Splited</asp:ListItem>
                    <asp:ListItem>Hasaka</asp:ListItem>
                    <asp:ListItem>Gas</asp:ListItem>
                    <asp:ListItem>Single</asp:ListItem>
                    <asp:ListItem>Custom</asp:ListItem>

                </asp:DropDownList></td>
               
                  <td rowspan="2">
                      <asp:TextBox ID="TextBox54" runat="server"></asp:TextBox>
                  </td>
               
              </tr>
              
              <tr>
                 
             <td>  
                 <asp:DropDownList ID="DropDownList56" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  onChange="show_pnl()"
                     ClientIDMode="Static" Width="100px" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>One</asp:ListItem>
                   <asp:ListItem>Double</asp:ListItem>
                   
                   <asp:ListItem>Master Bedroom</asp:ListItem>
                   
                   <asp:ListItem>3,4,5</asp:ListItem>
                   <asp:ListItem>Custom</asp:ListItem>
                 
                
		 </asp:DropDownList>
                  </td>
               
             <td rowspan="2">
                      <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                  </td>
              </tr>
                <tr>
                 
               <td class="style1" rowspan="2" >Showers<span style="color:#F00;"></span></td>
               
             <td>  
                 <asp:DropDownList ID="DropDownList20" runat="server" 
                     CssClass="combobox"  
                     ClientIDMode="Static" Width="100px" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>Bath</asp:ListItem>
                   <asp:ListItem>Dosh</asp:ListItem>
                   
                   <asp:ListItem>Dosh + Bath</asp:ListItem>
                   
                   <asp:ListItem>Master Bedroom</asp:ListItem>
                   <asp:ListItem>Jacuzie</asp:ListItem>
                 
                
		           <asp:ListItem>Custom</asp:ListItem>
                 
                
		 </asp:DropDownList></td>
        
             <td>  <script type="text/javascript">

                       $(document).ready(function () {
                           $("#DropDownList57").hide();
                           $("#Image2").click(function () {


                               $("#DropDownList57").show();


                           });
                       });
</script>
             
                 <asp:Image ID="Image2" runat="server" ImageUrl="img/plus.png" />
                 
                    </td>
        
         <td rowspan="2"><asp:TextBox ID="TextBox16" runat="server" ClientIDMode="Static" CssClass="validate[optional]" placeholder="number of shower"></asp:TextBox></td>
               
         <td rowspan="2">Balconies</td>
                <script type="text/javascript">

                    $(document).ready(function () {
                        $("#txtBalconies0").hide();
                        $("#TextBox48").hide();
                        $("#DropDownList47").hide();
                        $("#Button4").click(function () {


                            $("#txtBalconies0").show();
                            $("#TextBox48").show();
                            $("#DropDownList47").show();
                            $("#Button4").hide();
                        });


                    });
</script> 
         <td rowspan="2">
             <asp:DropDownList ID="txtBalconies" runat="server" CssClass ="combobox " 
                 Width="70px"><asp:ListItem>Select</asp:ListItem>
                  <asp:ListItem Value="Balcony"></asp:ListItem>
                    <asp:ListItem Value="Sun Balcony"></asp:ListItem>
                             <asp:ListItem Value="Service Balcony"></asp:ListItem>
                    <asp:ListItem Value="Closed Balcony"></asp:ListItem>
                             <asp:ListItem Value="Balcony with Roof"></asp:ListItem>
                    <asp:ListItem Value="Sun Balcony"></asp:ListItem>
                </asp:DropDownList>
                       <asp:TextBox ID="TextBox6" runat="server" Width="50px"></asp:TextBox>
                       <asp:DropDownList ID="DropDownList46" runat="server" CssClass ="combobox " 
                           Width="70px"><asp:ListItem>Select</asp:ListItem>
                  <asp:ListItem Value="square fit ">Square fit </asp:ListItem>
                    <asp:ListItem Value="square meter">Square meter</asp:ListItem>

                </asp:DropDownList>
                       
                        &nbsp;<asp:DropDownList ID="txtBalconies0" runat="server" CssClass ="combobox " 
                 Width="70px" ><asp:ListItem>Select</asp:ListItem>
                  <asp:ListItem Value="Balcony"></asp:ListItem>
                    <asp:ListItem Value="Sun Balcony"></asp:ListItem>
                             <asp:ListItem Value="Service Balcony"></asp:ListItem>
                    <asp:ListItem Value="Closed Balcony"></asp:ListItem>
                             <asp:ListItem Value="Balcony with Roof"></asp:ListItem>
                    <asp:ListItem Value="Sun Balcony"></asp:ListItem>
                </asp:DropDownList>
                       <asp:TextBox ID="TextBox48" runat="server" Width="50px" 
                ></asp:TextBox>
                       <asp:DropDownList ID="DropDownList47" runat="server" CssClass ="combobox " 
                           Width="70px"  
                          ><asp:ListItem>Select</asp:ListItem>
                  <asp:ListItem Value="square fit ">Square fit </asp:ListItem>
                    <asp:ListItem Value="square meter">Square meter</asp:ListItem>

                </asp:DropDownList>
                    </td>
               
                    <td>
                       
                        <input id="Button4" type="Button" value="Add" Text="View"  class="combobox"  onChange="show_pnl()" style="width:40px"  /></td>
                    <td>
                    </td>
               
              </tr>
                <tr>
                 
             <td>  
                 <asp:DropDownList ID="DropDownList57" runat="server" 
                     CssClass="combobox"  
                     ClientIDMode="Static" Width="100px" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>Bath</asp:ListItem>
                   <asp:ListItem>Dosh</asp:ListItem>
                   
                   <asp:ListItem>Dosh + Bath</asp:ListItem>
                   
                   <asp:ListItem>Master Bedroom</asp:ListItem>
                   <asp:ListItem>Jacuzie</asp:ListItem>
                 
                
		           <asp:ListItem>Custom</asp:ListItem>
                 
                
		 </asp:DropDownList>
                    </td>
        
             <td>  
                 &nbsp;</td>
        
              </tr>
                <tr>
                 
               <td class="style1" ></td>
               
             <td colspan="2">  
                 <asp:DropDownList ID="DropDownList48" runat="server" Width="120px" Visible="false"><asp:ListItem>Select</asp:ListItem>
                     <asp:ListItem>Yes</asp:ListItem>
                     <asp:ListItem>No</asp:ListItem>
                     <asp:ListItem>Custom</asp:ListItem>
                 </asp:DropDownList>
                    </td>
         <td rowspan="1">  <asp:TextBox ID="TextBox19" runat="server"></asp:TextBox></td>
                  
               
         <td rowspan="2">&nbsp;</td>
               
         <td rowspan="2">&nbsp;</td>
               
              </tr>
                <tr>
                 
               <td class="style1" >Roof</td>
               
             <td colspan="2">  
                 <asp:TextBox ID="TextBox33" runat="server"  type="text"  CssClass="validate[optional]" ></asp:TextBox>
                    </td>
               
              </tr>
               <tr>
                 
               <td class="style1" >Kitchen<span style="color:#F00;"></span></td>
               
             <td colspan="2">  <asp:DropDownList ID="DropDownList16" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  
                     ClientIDMode="Static" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>Standard</asp:ListItem>
                   <asp:ListItem>Improved</asp:ListItem>
                   
                   <asp:ListItem>American</asp:ListItem>
                   
                   <asp:ListItem>Island Country</asp:ListItem>
                   <asp:ListItem>Small Kitchen</asp:ListItem>
                   <asp:ListItem>None</asp:ListItem>
                
		           <asp:ListItem>Custom</asp:ListItem>
                
		 </asp:DropDownList></td>
                 
                   <td>  <asp:TextBox ID="TextBox20" runat="server"></asp:TextBox>
                   </td>
                   <td>
                       Balconies Number</td>
                   <td>
                       <asp:TextBox ID="TextBox49" runat="server"></asp:TextBox>
                   </td>
              </tr>
                 <tr>
                 
               <td class="style1" >View<span style="color:#F00;"></span></td>
               
             <td colspan="2">  <asp:DropDownList ID="DropDownList36" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  
                     ClientIDMode="Static" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>Sea View</asp:ListItem>
                   <asp:ListItem>Park View</asp:ListItem>
                   
                   <asp:ListItem>City View</asp:ListItem>
                   
                   <asp:ListItem>Open View</asp:ListItem>
                   <asp:ListItem>Building</asp:ListItem>
                 
                <asp:ListItem>Custom</asp:ListItem>
		 </asp:DropDownList></td>
         <td><asp:TextBox ID="TextBox8" runat="server" ClientIDMode="Static" CssClass="validate[optional]" placeholder="view"></asp:TextBox></td>
               
         <td>Maintanance Fee</td>
               
         <td>
             <asp:TextBox ID="TextBox39" runat="server"></asp:TextBox>
                     </td>
               
              </tr>
               <tr>
                 
               <td class="style1" >Front/Rear View<span style="color:#F00;"></span></td>
               
             <td colspan="2">  <asp:DropDownList ID="DropDownList39" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  onChange="show_pnl()"
                     ClientIDMode="Static" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>Front View</asp:ListItem>
                   <asp:ListItem>Rear View</asp:ListItem>
                   
                   <asp:ListItem>Side View</asp:ListItem>
                   
                   <asp:ListItem>Cornor View</asp:ListItem>
                  
		           <asp:ListItem>Custom</asp:ListItem>
                  
		 </asp:DropDownList></td>
         <td><asp:TextBox ID="TextBox11" runat="server" ClientIDMode="Static" CssClass="validate[optional]"  placeholder="custom view"></asp:TextBox></td>
               
         <td>Building Permit</td>
               
         <td> <asp:DropDownList ID="DropDownList24" runat="server" CssClass ="combobox " ><asp:ListItem>Select</asp:ListItem>
                  <asp:ListItem Value="Yes "></asp:ListItem>
                    <asp:ListItem Value="No"></asp:ListItem>

                  <asp:ListItem>Custom</asp:ListItem>

                </asp:DropDownList></td>
               
               <td>    <asp:TextBox ID="TextBox45" runat="server"></asp:TextBox></td>
              </tr>
               <tr>
                 
               <td class="style1" >Garden<span style="color:#F00;"></span></td>
               
             <td colspan="2">  <asp:DropDownList ID="DropDownList25" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox" 
                     ClientIDMode="Static" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>Yes</asp:ListItem>
                   <asp:ListItem>No</asp:ListItem>
                   
                   <asp:ListItem>Private</asp:ListItem>
                   
                   <asp:ListItem>With Partners</asp:ListItem>
                  
		           <asp:ListItem>Custom</asp:ListItem>
                  
		 </asp:DropDownList></td>
         <td><asp:TextBox ID="TextBox15" runat="server" ClientIDMode="Static" CssClass="validate[optional]"  placeholder="Custom Garden"></asp:TextBox></td>
               
         <td>Boiler</td>
               
         <td> <asp:DropDownList ID="DropDownList32" runat="server" CssClass ="combobox " ><asp:ListItem>Select</asp:ListItem>
                  <asp:ListItem Value="Yes "></asp:ListItem>
                    <asp:ListItem Value="None"></asp:ListItem>
                    <asp:ListItem Value="Sun"></asp:ListItem>
                    <asp:ListItem Value="Electric"></asp:ListItem><asp:ListItem Value="Gas"></asp:ListItem>
                    <asp:ListItem Value="Haska"></asp:ListItem>
                      <asp:ListItem Value="Solar"></asp:ListItem>
                  <asp:ListItem>Custom</asp:ListItem>
                </asp:DropDownList></td>
               <td> <asp:TextBox ID="TextBox46" runat="server"></asp:TextBox></td>
                  
              </tr>

              <tr>
                 <script type="text/javascript">

                     $(document).ready(function () {
                         $("#TextBox10").hide();
                         $("#DropDownList33").change(function () {

                             var x = $(this).val();

                             if (x == "Custom") {
                                 alert("");
                                 $("#TextBox10").show();
                             }
                             else {
                                 $("#TextBox10").hide();
                             }

                         });
                     });
</script>
               <td class="style1" >Evacuation Date<span style="color:#F00;"></span></td>
               
             <td colspan="2">  <asp:DropDownList ID="DropDownList33" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  
                     ClientIDMode="Static"  onChange="show_pnl()" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>Immediately</asp:ListItem>
                   <asp:ListItem>Flexible</asp:ListItem>
                <asp:ListItem>Custom</asp:ListItem>
		 </asp:DropDownList></td>
           <td> <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox></td>
                  
         
               
         <td>S<span lang="EN-US">afe room </span></td>
               
         <td>                   <script type="text/javascript">

                                    $(document).ready(function () {
                                        $("#TextBox53").hide();
                                        $("#DropDownList44").change(function () {

                                            var x = $(this).val();
                                            if (x == "Custom") {
                                                $("#TextBox53").show();
                                            }
                                            else {
                                                $("#TextBox53").hide();
                                            }

                                        });
                                    });
</script> 
         <asp:DropDownList ID="DropDownList44" runat="server" CssClass ="combobox " ><asp:ListItem>Select</asp:ListItem>
                  <asp:ListItem Value="Yes "></asp:ListItem>
                    <asp:ListItem Value="No"></asp:ListItem>
                    
                  <asp:ListItem>Custom</asp:ListItem>
                    
                </asp:DropDownList></td>
               
                  <td>
                      <asp:TextBox ID="TextBox53" runat="server"></asp:TextBox>
                  </td>
               
              </tr>
              <tr>
                 
               <td class="style1" >Land<span style="color:#F00;"></span></td>
               <script type="text/javascript">

                   $(document).ready(function () {
                       $("#TextBox38").hide();
                       $("#DropDownList34").change(function () {

                           var x = $(this).val();

                           if (x == "Custom") {
                               $("#TextBox38").show();
                           }
                           else {
                               $("#TextBox38").hide();
                           }

                       });
                   });
</script>
             <td colspan="2">  <asp:DropDownList ID="DropDownList34" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  onChange="show_pnl()"
                     ClientIDMode="Static" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>Private</asp:ListItem>
                   <asp:ListItem>Commercial</asp:ListItem>
                   <asp:ListItem>JV</asp:ListItem>
                   <asp:ListItem>Moosa</asp:ListItem>
                  <asp:ListItem>Eivon</asp:ListItem>
                
                <asp:ListItem>Custom</asp:ListItem>
		 </asp:DropDownList></td>
         <td>
             <asp:TextBox ID="TextBox38" runat="server"></asp:TextBox>
                  </td>
               
         <td><span>Elevator</span></td>
               
         <td>  
             <asp:DropDownList ID="DropDownList50" runat="server"><asp:ListItem>Select</asp:ListItem>
                  <asp:ListItem>2</asp:ListItem>
                 <asp:ListItem>3</asp:ListItem>
                 <asp:ListItem>Yes</asp:ListItem>
                 <asp:ListItem>No</asp:ListItem>
                 <asp:ListItem>Shabbat</asp:ListItem>
                 <asp:ListItem>Custom</asp:ListItem>
             </asp:DropDownList>
                  </td>
               <td><asp:TextBox ID="TextBox47" runat="server"></asp:TextBox></td>
              </tr>
                 
                <tr>
                 <script type="text/javascript">

                     $(document).ready(function () {
                         $("#TextBox18").hide();
                         $("#DropDownList35").change(function () {

                             var x = $(this).val();

                             if (x == "Custom") {
                                 $("#TextBox18").show();
                             }
                             else {
                                 $("#TextBox18").hide();
                             }

                         });
                     });
</script>
               <td class="style1" ><span style="color:#F00;"></span></td>
               
             <td colspan="2">  <asp:DropDownList ID="DropDownList35" runat="server" 
                     style="float:left;margin-top:0px;"   CssClass="combobox"  onChange="show_pnl()"
                     ClientIDMode="Static" Visible="false" ><asp:ListItem>Select</asp:ListItem>
                   <asp:ListItem>square feet</asp:ListItem>
                   <asp:ListItem>square meters</asp:ListItem>
                  
                 <asp:ListItem>Yards</asp:ListItem>
                   <asp:ListItem>Aceres</asp:ListItem>
                <asp:ListItem>Custom</asp:ListItem>
		 </asp:DropDownList></td>
         <td colspan="3"><asp:TextBox ID="TextBox18" runat="server" ClientIDMode="Static"  placeholder="Custom Area" CssClass="validate[optional]"></asp:TextBox></td>
               
              </tr>
            </table>
            </div>
          <div id="student_permanent_address" class="form_placeholder_std" style="margin-top:0;border-top:none;">
         
		   <div id="student_title3" class="form_title"><img src="../images/icons/email.png">
              <h2> Property Location and background details</h2>
            </div>
            <table style="text-align:left">
              <tr>
                <td >Lot Premises</td>
                <td><asp:TextBox ID="txtProperty" runat="server"  type="text"  CssClass="validate[optional]" ></asp:TextBox></td>
                <td ></td>
                <td>  
                    <asp:TextBox ID="TextBox41" runat="server" Visible="false"></asp:TextBox>
                  </td>
                <td >Property size</td>
                <td>
                    <asp:TextBox ID="TextBox40" runat="server" Width="70px"></asp:TextBox>
                    <asp:DropDownList ID="DropDownList41" runat="server" 
                   CssClass="combobox" 
                     ClientIDMode="Static" Width="70px"><asp:ListItem>Select</asp:ListItem>
                    <asp:ListItem>Acer</asp:ListItem>
                   <asp:ListItem>Squarefeet</asp:ListItem>
                   <asp:ListItem>SquareMeter</asp:ListItem>
                   
                 
                
		 </asp:DropDownList></td>
              <tr>
                <td >Price<span style="color:#F00;"></span></td>
                <td>
                
                
                     <script language="javascript" type="text/javascript">

                         function sumCalc() {
                             var _txt1 = document.getElementById('<%= txtPrice.ClientID %>');
                             var _txt2 = document.getElementById('<%= txtOldPrice.ClientID %>');
                             var _txt3 = document.getElementById('<%= TextBox52.ClientID %>');
                             var t1 = 0, t2 = 0;

                             if (_txt1.value != "") t1 = _txt1.value;
                             if (_txt2.value != "") t2 = _txt2.value;

                             _txt3.value = 100 - ((parseInt(t1) / parseInt(t2)) * 100);
                         }
</script>

                <asp:TextBox ID="txtPrice" runat="server"  type="text"  
                        CssClass="validate[optional]" Width="80px" ></asp:TextBox>
                    <asp:DropDownList ID="DropDownList49" runat="server"><asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>$</asp:ListItem>
                        <asp:ListItem>Euro</asp:ListItem>
                        <asp:ListItem>ILS</asp:ListItem>
                        <asp:ListItem>GBP</asp:ListItem>
                    </asp:DropDownList>
                  </td>
                <td >Old Price<span style="color:#F00;"></span></td>
                <td><asp:TextBox ID="txtOldPrice" runat="server"  type="text"  
                        CssClass="validate[optional]" Width="80px"  onblur="javascript:sumCalc();" xmlns:asp="#unknown"></asp:TextBox>
                    <asp:DropDownList ID="DropDownList51" runat="server"><asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>$</asp:ListItem>
                        <asp:ListItem>Euro</asp:ListItem>
                        <asp:ListItem>ILS</asp:ListItem>
                        <asp:ListItem>GBP</asp:ListItem>
                    </asp:DropDownList>
                  </td>
                <td >Price Reduction</td>
                <td>
                    <asp:TextBox ID="TextBox52" runat="server"></asp:TextBox>
                    %</td>
              </tr>
            </table>
          </div>

             <div id="Div17" class="form_placeholder_std" style="margin-top:0;border-top:none;">
         
		   <div id="Div18" class="form_title"><img src="../images/icons/email.png">
              
              <h2  style="float:left" >Currency Calculator</h2>
              <p style="color:#A00;float:left;"></p>
               <asp:Button ID="Button1" runat="server" Text="View" style="float:right;margin-top:5px;" CssClass="combobox"  onChange="show_pnl()" />  
    
            </div>
            <table style="text-align:left">
              <tr>
           
                <td><div id ="cr" style="width:474px; background-color:#EFF2E6;border:2px solid #888;text-align:center;margin:0px;padding:0px"> <div style="background-color:#F4F4E6;border-bottom:1px solid #888;width:100%;margin:0px;padding:0px;align:center;text-align:center;"><a class="HSlabel" style="font-size:12px!important; line-height:16px!important;font-family: arial;text-decoration:none;color:#000000;margin-bottom:6px;" href="#"><b></b></a></div> <script type="text/javascript" src="http://www.fx-rate.net/converter.php?layout=horizontal&amount=1000&tcolor=000000&default_pair=USD/EUR"> </script></div> <!-- End of Currency Converter script --> 
</td>
                
              </tr>
            </table>
          </div>
             <div id="Div13" class="form_placeholder_std">
            <div id="Div14" class="form_title"><img src="../images/icons/user.png">
              <h2>Direction wise Detailing</h2>
            </div>
            <table style="text-align:left">
              <tr>
                <td>North
                  <asp:CheckBox ID="CheckBox9" runat="server" />
                 </td>
                    
                   <td>South
                  <asp:CheckBox ID="CheckBox10" runat="server" />
                 </td>
                  <td>East
                  <asp:CheckBox ID="CheckBox11" runat="server" />
                 </td>
            
                 
                <td>West
                  <asp:CheckBox ID="CheckBox12" runat="server" />
                 </td>
                    
                  
                </tr>
                
              </table>
              
          </div>
           <div id="Div15" class="form_placeholder_std">
            <div id="Div16" class="form_title"><img src="../images/icons/user.png">
              <h2>Property Category</h2>
            </div>
            <table style="text-align:left">
              <tr>
                <td>Smart House
                  <asp:CheckBox ID="CheckBox1" runat="server" />
                 </td>
                    
                   <td>Alarm
                  <asp:CheckBox ID="CheckBox2" runat="server" />
                 </td>
                  <td>Bars
                  <asp:CheckBox ID="CheckBox3" runat="server" />
                 </td>

                <td>Handicap Access 
                  <asp:CheckBox ID="CheckBox4" runat="server" />
                 </td>
                    
                   <td>Guard
                  <asp:CheckBox ID="CheckBox5" runat="server" />
                 </td>
                 </tr>
                 <tr>
             <td>     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gym
                  <asp:CheckBox ID="CheckBox6" runat="server" />
                 </td>
                
                 
                <td>Jacuzie
                  <asp:CheckBox ID="CheckBox7" runat="server" />
                 </td>
                    
                   <td>Pool
                  <asp:CheckBox ID="CheckBox8" runat="server" />
                 </td>
               
                     <td>

                      <script type="text/javascript">

                          $(document).ready(function () {
                              $("#TextBox42").hide();
                              $("#Label4").hide();
                              $("#CheckBox13").click(function () {


                                  $("#TextBox42").show();
                                  $("#Label4").show();



                              });
                          });
</script>

                         <asp:CheckBox ID="CheckBox13" runat="server" Text="Custom" />
                     </td>
               
                </tr>
                 <tr>
             <td>     
                 <asp:Label ID="Label4" runat="server" Text="Custom"></asp:Label>
                 </td>
                
                 
                <td>
                    <asp:TextBox ID="TextBox42" runat="server"></asp:TextBox>
                 </td>
                    
                   <td>&nbsp;</td>
               
                     <td>
                         &nbsp;</td>
               
                </tr>
              </table>
              
          </div>
           
          
          

         
          <div id="student_submit" class="form_placeholder_std" style="margin-top:0;border-top:none;border-bottom:none;">
            <div id="student_title4" class="form_title">
              <div style="margin-left:27px;margin-top:2px;">
                   <asp:Button ID="Save" runat="server" Text="Save & Continue" 
                       CssClass="btn btn-success" onclick="Save_Click"/>
                <asp:Button ID="Cancel" runat="server" Text="Cancel" CssClass="btn"/>
              </div>
            </div>
          </div>
         
      </div>
    </div>
  </div>
  
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script src="../js/jquery.validationEngine-en.js" type="text/javascript"></script>
<script src="../js/jquery.validationEngine.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/utility.js"></script>
<!--<script src="../js/jquery.min.js"></script>-->
<script src="../js/bootstrap-modal.js"></script>
<!--<script src="../js/jquery.min.js"></script>-->

 <div id="leftcolumn">
 <div id="leftcolumn_top">
      <div id="createform" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">Create Form</h1>
        </div>
        <div class="modal-body">
        <table id="tbl_task" class="model_popup_desgin">
  <tr>
    <td><p> You have a recent&nbsp;&nbsp&nbsp;&nbsp;update on date</p></td>
  </tr>
  <tr>
     
   
  </tr>
  <tr>
      
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

          
        </div>
        <div class="modal-footer">  <asp:Button ID="Button2" runat="server" Text="cancel" 
                CssClass="btn btn-success" Visible="False" />
             <p><a data-toggle="modal" href="#addtask1" class="btn btn-success" style="font-weight:bold;"><img src="../images/icons/task.png" style="margin-right:7px;" />View</a></p></div>
      </div>
       <div id="addtask1" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">Notification's</h1>
        </div>
        <div class="modal-body1">
        <table id="Table1" class="model_popup_desgin">
  <tr>
    <td>Date of Creation</td>
    <td><p><asp:Label ID="Label2" runat="server" Text="Label" Visible="False"></asp:Label></p></td>
  </tr>
     <tr>
    <td>Last Updated Updated</td>
    <td><p><asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></p></td>
  <td>Choose Agent</td>
      <asp:DropDownList ID="DropDownList3" runat="server" CssClass ="combobox " 
                Visible="False">
      </asp:DropDownList>
 
     
  <tr>
    <td>Add Another Agent</td>
       <asp:TextBox ID="TextBox1" runat="server" Visible="False"></asp:TextBox>
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

          
        </div>
        <div class="modal-footer">  <asp:Button ID="Button3" runat="server" Text="cancel" CssClass="btn btn-success" />
            </div>
      </div>
      
 </div>
      <ul id="nav" style=" text-align:left">
      <li><a href="dashboard.aspx"><img src="../images/icons/home.png" class="menu_icon">Dashboard</a> </li>    <li><a href="#"><img src="../images/icons/form.png" class="menu_icon">Rent</a>
        <ul>
          <li><a href="report_property_for_rent.aspx"><img src="../images/icons/tabs.png" class="menu_icon">Property To Rent</a></li> <li><a href="search_property_torent.aspx"><img src="../images/icons/tabs.png" class="menu_icon">Client Want To Rent</a></li>
        </ul></li><li><a href="search_buy_property.aspx"><img src="../images/icons/form.png" class="menu_icon">Client Want To Buy</a><li><a href="searh_sell_property.aspx"><img src="../images/icons/form.png" class="menu_icon">Property For Sale</a></li>
      
  <%--    <li><a href="#"><img src="../images/icons/phone.png" class="menu_icon"> Requests Details</a>
        <ul>
          <li><a href="Add_New_Request.aspx"><img src="../images/icons/form.png" class="menu_icon">Requests </a></li>
  
        <li><a href="deleterequest.aspx"><img src="../images/icons/trash.png" class="menu_icon">Delete Requests </a></li>
       
          <li><a href="adminrequestreport.aspx"><img src="../images/icons/pages.png" class="menu_icon">Reports</a></li>
        </ul>
      </li>--%>
          <li><a href="#"><img src="../images/icons/std2.png" class="menu_icon"> Agent</a>
        <ul>
          <li><a href="add_agent.aspx"><img src="../images/icons/plus.png" class="menu_icon">Agent add</a></li>
         
          <li><a href="deleteagent.aspx"> <img src="../images/icons/trash.png" class="menu_icon">Delete Agent</a></li>
          <li><a href="agentreport.aspx"><img src="../images/icons/pages.png" class="menu_icon">Agent Edit/Reports</a></li>
        </ul>
      </li>
   <li><a href="admin_notes.aspx"><img src="../images/icons/search.png" class="menu_icon">Action & Activity</a>
        <%--<ul>
          <li><a href="admin_notes.aspx"><img src="../images/icons/paste.png" class="menu_icon">Notes</a></li>
          
         
           <li><a href="search_tasks.aspx"><img src="../images/icons/notice.png" class="menu_icon">Tasks</a></li>
           <li><a href="Property_Sell_Buy_Rent.aspx"><img src="../images/icons/home.png" class="menu_icon">Property to Sell/Buy/Rent</a></li>
          
        </ul>--%>
      </li>
       <li><a href="#"><img src="../images/icons/id.png" class="menu_icon">Account Details</a>
        <ul>
          <li><a href="admin_account_information.aspx"><img src="../images/icons/id.png" class="menu_icon">Update Account Details</a></li>
         
          
        </ul>
      </li>
    <li style="margin-top:10px" ><iframe src="Admin_Module_small/Calendar.aspx" height="250" width="220" scrolling="no" frameborder="0"></iframe></li>
    <li><a href="dashboard.aspx"><img src="../images/icons/id.png" class="menu_icon"><strong>View Full Calendar</strong></a></li>
    </ul></div>
  


   <div id="footer">
    <p> Copyright &copy; 2013. <a href="http://www.iitechnology.in">iITechnology</a></p>
  </div>

</div>
 <script language="javascript">
     function ValidateFile(source, args) {
         try {
             var fileAndPath =
           document.getElementById(source.controltovalidate).value;
             var lastPathDelimiter = fileAndPath.lastIndexOf("\\");
             var fileNameOnly = fileAndPath.substring(lastPathDelimiter + 1);
             var file_extDelimiter = fileNameOnly.lastIndexOf(".");
             var file_ext = fileNameOnly.substring(file_extDelimiter + 1).toLowerCase();
             if (file_ext != "jpg") {
                 args.IsValid = false;
                 if (file_ext != "gif")
                     args.IsValid = false;
                 if (file_ext != "png") {
                     args.IsValid = false;
                     return;
                 }
             }
         } catch (err) {
             txt = "There was an error on this page.\n\n";
             txt += "Error description: " + err.description + "\n\n";
             txt += "Click OK to continue.\n\n";
             txt += document.getElementById(source.controltovalidate).value;
             alert(txt);
         }

         args.IsValid = true;
     }
    </script>
      
</form>

                <script type="text/javascript">
                    window.onload = function () {
                        GetDate();
                    };
                    function GetDate() {
                        var dt = new Date();
                        var dd;
                        var mm;
                        var yyyy;
                        var date;
                        var month;
                        hh = dt.getHours();
                        mi = dt.getMinutes();
                        mk = dt.getTime();
                        dd = dt.getDate();
                        mm = dt.getMonth() + 1;


                        document.getElementById('txtdate').value = dd + '/' + mm + '/' + dt.getFullYear() + ' ' + hh + '.' + mi;

                    }
</script>
</body>
</html>
